package com.itheima.tanhua.api.mongodb;

import com.itheima.tanhua.pojo.mongo.Friend;
import com.itheima.tanhua.pojo.mongo.MovementTimeLine;
import org.springframework.stereotype.Service;

import java.util.List;


public interface TimeLineApi {

    /**
     * 查询当前用户的所有的friendId
     * @param uid
     */
    List<Friend> findFriends(Long uid);

    /**
     * 添加时间线
     * @param movementTimeLine
     */
    void saveMovementTimeLine(MovementTimeLine movementTimeLine);

    /**
     * 通过Fid查询时间线
     * @param uid
     * @return
     */
    List<MovementTimeLine> findTimeLine(Long uid);
}
